#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int removeElement(int* nums, int numsSize, int val) {
    int former = 0;
    int latter = 0;
    while (latter <= numsSize - 1)
    {
        if (nums[latter] == val)
        {
            latter++;
        }
        else {
            nums[former] = nums[latter];
            former++;
            latter++;
        }
    }
    return former;

}